package com.magicmovie.api.service;

import com.magicmovie.api.service.impl.IndexCategoryServiceImpl;
import com.magicmovie.entity.IndexCategory;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "service",fallback = IndexCategoryServiceImpl.class)
public interface IndexCategoryService {

    @RequestMapping(value = "/indexCategory/findAll",method = RequestMethod.GET)
    List<IndexCategory> findAll();
}
